﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmOpcion.aspx.cs" Inherits="EvolSoftWeb.wFrmOpcion" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxHtmlEditor.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHtmlEditor" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxSpellChecker.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxSpellChecker" TagPrefix="dx" %>
<asp:Content ID="cMain" ContentPlaceHolderID="cphMain" runat="server">
    <script type="text/javascript">
        function soloLetras(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = " áéíóúabcdefghijklmnñopqrstuvwxyz";
            especiales = [46];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>
    <script type="text/javascript">
        function caracteresEspeciales(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = " áéíóúabcdefghijklmnñopqrstuvwxyz1234567890";
            especiales = [46, 47, 126];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>
    <script type="text/javascript">
        function soloLetrasNumeros(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = " áéíóúabcdefghijklmnñopqrstuvwxyz1234567890";
            especiales = [46];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>
    <script type="text/javascript">
    // <![CDATA[

        function ShowEliminar() {
            popupEliminar.Show();

        }
        function ShowSeleccionarOpcion() {
            popupmsj.Show();

        }

        function ShowOK() {
            popupOK.Show();
        }

        function ShowModificar() {
            popupModificar.Show();
        }

        function ShowVacios() {
            popupVacios.Show();
        }

        function ShowDescripcion() {
            popupDescripcion.Show();
        }
        function ShowPopupEliminarGrupoOpcion() {
            PopupEliminarGrupoOpcion.Show();
        }

       
    // ]]> 
    </script>
    <div class="main-header" style="width: 100%">
        <div class="main-titulo">
            Adm. Opciones</div>
    </div>
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <div class="content-form">
                <table>
                    <tr>
                        <td>
                            <dx:ASPxButton ID="btnNuevoV2" runat="server" Text="Nuevo" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" OnClick="btnNuevoV2_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnGrabarv2" runat="server" Text="Grabar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" OnClick="btnGrabarv2_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnEliminarv2" runat="server" Text="Eliminar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" OnClick="btnEliminarv2_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnSalirv2" runat="server" Text="Salir" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                OnClick="btnSalirv2_Click">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <asp:Panel ID="pnlMensaje" runat="server" CssClass="mensaje-form">
                    <asp:Label ID="lblMensaje" runat="server" Text=""></asp:Label>
                </asp:Panel>
                <table width="100%">
                    <tr>
                        <td valign="top" style="width: 30%;">
                            <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="200px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                GroupBoxCaptionOffsetY="-19px" HeaderText="Seleccione opción" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                View="GroupBox">
                                <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                <HeaderStyle>
                                    <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                </HeaderStyle>
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent4" runat="server" SupportsDisabledAttribute="True">
                                        <div class="listado-tree">
                                            <asp:TreeView ID="tvOpciones" runat="server" ShowCheckBoxes="All" OnSelectedNodeChanged="tvOpciones_SelectedNodeChanged">
                                            </asp:TreeView>
                                        </div>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxRoundPanel>
                        </td>
                        <td valign="top" style="width: 30%;">
                            <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" Width="300px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                GroupBoxCaptionOffsetY="-19px" HeaderText="Agregar nueva opción" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                View="GroupBox">
                                <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                <HeaderStyle>
                                    <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                </HeaderStyle>
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent10" runat="server" SupportsDisabledAttribute="True">
                                        <table cellpadding="0" cellspacing="0" border="0" class="tabla-form">
                                            <tr>
                                                <td class="tb-label">
                                                    Codigo opción
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtCodigo" runat="server" ClientEnabled="False" Width="240px">
                                                        <ValidationSettings ErrorText="Valor inválido">
                                                            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                    <asp:HiddenField ID="hfIdPadre" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tb-label">
                                                    Nombre opción
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtNombre" onkeypress="return soloLetrasNumeros(event)" runat="server"
                                                        Width="240px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tb-label">
                                                    Objetivo
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxMemo ID="txtObjetivo" runat="server" Height="71px" Width="240px">
                                                        <ValidationSettings ErrorText="Valor inválido">
                                                            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                        </ValidationSettings>
                                                    </dx:ASPxMemo>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding-top: 10px">
                                                    <dx:ASPxButton ID="btnDescripcion" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Agregar descripción" AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {
	popupDescripcion.Show();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tb-label">
                                                    Tipo
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxComboBox ID="ddlTipo" runat="server" SelectedIndex="0" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <Items>
                                                            <dx:ListEditItem Selected="True" Text="Seleccione" />
                                                            <dx:ListEditItem Text="WebForm" Value="W" />
                                                            <dx:ListEditItem Text="Reporte" Value="R" />
                                                        </Items>
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                        <ValidationSettings>
                                                            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                        </ValidationSettings>
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tb-label">
                                                    Dirección de la opción
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtUrl" onkeypress="return caracteresEspeciales(event)" runat="server"
                                                        Width="240px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tb-label">
                                                    Orden dentro del grupo.
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxSpinEdit ID="spinNroOrden" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="21px" Number="1" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        MaxValue="30" MinValue="1">
                                                        <SpinButtons HorizontalSpacing="0">
                                                        </SpinButtons>
                                                        <ClientSideEvents Validation="function(s, e) {if(e.value<=0){e.isValid=false;}}" />
                                                    </dx:ASPxSpinEdit>
                                                    <dx:ASPxLabel ID="Label1" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tb-label">
                                                    Estado
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxComboBox ID="ddlEstado" runat="server" SelectedIndex="0" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <Items>
                                                            <dx:ListEditItem Selected="True" Text="Activo" Value="A" />
                                                            <dx:ListEditItem Text="Inactivo" Value="I" />
                                                        </Items>
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                        <ValidationSettings>
                                                            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                        </ValidationSettings>
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tb-label">
                                                    Area
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxComboBox ID="cboArea" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tb-label">
                                                    Opción padre
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxComboBox ID="cboOpcionPadre" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" IncrementalFilteringMode="Contains" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxRoundPanel>
                        </td>
                        <td valign="top" style="width: 40%;">
                            <dx:ASPxRoundPanel ID="RPAccesoUsuario" runat="server" Width="100%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                GroupBoxCaptionOffsetY="-19px" HeaderText="Accesos de grupo de la opción" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Height="406px" View="GroupBox">
                                <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                <ContentPaddings PaddingLeft="9px" PaddingTop="10px" PaddingRight="11px" PaddingBottom="10px">
                                </ContentPaddings>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                    <Paddings PaddingLeft="9px" PaddingTop="3px" PaddingRight="11px" PaddingBottom="6px">
                                    </Paddings>
                                </HeaderStyle>
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent11" runat="server" SupportsDisabledAttribute="True">
                                        <table>
                                            <tr>
                                                <td>
                                                    <dx:ASPxButton ID="btnAgregarGrupo" runat="server" Text="Agregar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="100px" AutoPostBack="False" ClientEnabled="False">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupAgregarGrupo.Show();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnEliminarRelacionOpcion" runat="server" Text="Eliminar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="100px" OnClick="btnEliminarRelacionOpcion_Click" ClientEnabled="False">
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <table style="width: 100%;">
                                            <tr>
                                                <td>
                                                    <dx:ASPxGridView ID="gvrOpcionGrupo" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" AutoGenerateColumns="False" KeyFieldName="nombre"
                                                        Width="100%" OnAfterPerformCallback="gvrOpcionGrupo_AfterPerformCallback" OnPageIndexChanged="gvrOpcionGrupo_PageIndexChanged"
                                                        EnableCallBacks="False" OnFocusedRowChanged="gvrOpcionGrupo_FocusedRowChanged">
                                                        <Columns>
                                                            <dx:GridViewCommandColumn Caption="Marcar" ShowSelectCheckbox="True" VisibleIndex="2">
                                                            </dx:GridViewCommandColumn>
                                                            <dx:GridViewDataTextColumn Caption="Nombre" FieldName="nombre" VisibleIndex="0">
                                                                <PropertiesTextEdit>
                                                                    <ValidationSettings ErrorText="Valor inválido">
                                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                    </ValidationSettings>
                                                                </PropertiesTextEdit>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Descripción" FieldName="descripcion" VisibleIndex="1">
                                                                <PropertiesTextEdit>
                                                                    <ValidationSettings ErrorText="Valor inválido">
                                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                    </ValidationSettings>
                                                                </PropertiesTextEdit>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="id" Visible="False" VisibleIndex="4">
                                                                <PropertiesTextEdit>
                                                                    <ValidationSettings ErrorText="Valor inválido">
                                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                    </ValidationSettings>
                                                                </PropertiesTextEdit>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Opción" VisibleIndex="3">
                                                                <DataItemTemplate>
                                                                    <dx:ASPxHyperLink ID="hplUsuariosAsociados" runat="server" Text="Ver usuarios" Cursor="pointer">
                                                                        <ClientSideEvents Click="function(s, e) {
	e.processOnServer = true;
	PopupUsuarioAsosciados.Show();
}" />
                                                                    </dx:ASPxHyperLink>
                                                                </DataItemTemplate>
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsBehavior AllowFocusedRow="True" AllowSort="False" ProcessFocusedRowChangedOnServer="True" />
                                                        <SettingsBehavior AllowFocusedRow="True"></SettingsBehavior>
                                                        <SettingsPager PageSize="20">
                                                        </SettingsPager>
                                                        <SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>
                                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                            </Header>
                                                            <LoadingPanel ImageSpacing="5px">
                                                            </LoadingPanel>
                                                        </Styles>
                                                        <StylesPager>
                                                            <PageNumber ForeColor="#3E4846">
                                                            </PageNumber>
                                                            <Summary ForeColor="#1E395B">
                                                            </Summary>
                                                        </StylesPager>
                                                        <StylesEditors ButtonEditCellSpacing="0">
                                                            <ProgressBar Height="21px">
                                                            </ProgressBar>
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxRoundPanel>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="modal-dialog" runat="server" id="divDescripcion" style="display: none;
                width: 750px;">
                <div class="popup-header">
                    <div class="popup-title" runat="server" id="divDescripcionMove">
                        Descripción de la opción
                        <div class="content-message">
                            Por favor ingrse la descripción de la opción y presione Aceptar"
                        </div>
                        <div style="margin-top: 10px">
                        </div>
                        <cc1:Editor ID="eDescripcion" runat="server" Height="300" />
                        <div style="width: 200px; text-align: center; margin: auto; margin-top: 10px">
                            <img src="Images/btnaceptar.png" alt="Aceptar" onclick="cerrarDescripcion()" style="cursor: pointer" />
                        </div>
                    </div>
                </div>
            </div>
            <dx:ASPxPopupControl ID="popupOK" runat="server" AllowDragging="True" ClientInstanceName="popupOK"
                CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">
                        <br />
                        <dx:ASPxPanel ID="ASPxPanel5" runat="server" DefaultButton="btCreate">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent5" runat="server">
                                    <table align="center">
                                        <tr>
                                            <td colspan="2">
                                                Se grabó la opción correctamente !
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table align="center">
                                        <tr>
                                            <td>
                                                <dx:ASPxButton ID="ASPxButton8" runat="server" Text="Aceptar" AutoPostBack="False"
                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="10px">
                                                    <ClientSideEvents Click="function(s, e) {
	popupOK.Hide();
}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="popupEliminar" runat="server" AllowDragging="True" ClientInstanceName="popupEliminar"
                CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                        <br />
                        <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent1" runat="server">
                                    <table align="center">
                                        <tr>
                                            <td colspan="2">
                                                Se eliminó correctamente !
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table align="center">
                                        <tr>
                                            <td>
                                                <dx:ASPxButton ID="btnAceptar" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Text="Aceptar" Width="10px">
                                                    <ClientSideEvents Click="function(s, e) {
	popupEliminar.Hide();
}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="popupConfirmar" runat="server" AllowDragging="True" ClientInstanceName="popupConfirmar"
                CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">
                        <br />
                        <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent3" runat="server">
                                    <table align="center">
                                        <tr>
                                            <td colspan="2">
                                                ¿Estas seguro de eliminar la opción?
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table align="center">
                                        <tr>
                                            <td align="center">
                                                <dx:ASPxButton ID="btnEliminarOk" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Text="Aceptar" Width="10px" OnClick="btnEliminarOk_Click">
                                                    <ClientSideEvents Click="function(s, e) {
	popupConfirmar.Hide();
	e.processOnServer = true;
}" />
                                                </dx:ASPxButton>
                                            </td>
                                            <td align="center">
                                                <dx:ASPxButton ID="btnCancelar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Text="Cancelar" Width="40px">
                                                    <ClientSideEvents Click="function(s, e) {
	popupConfirmar.Hide();
}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" ClientInstanceName="popupmsj"
                CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                        <br />
                        <dx:ASPxPanel ID="ASPxPanel6" runat="server" DefaultButton="btCreate">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent6" runat="server">
                                    <table align="center">
                                        <tr>
                                            <td colspan="2">
                                                <dx:ASPxLabel ID="lblmsj" runat="server">
                                                </dx:ASPxLabel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table align="center">
                                        <tr>
                                            <td>
                                                <dx:ASPxButton ID="ASPxButton9" runat="server" Text="Aceptar" AutoPostBack="False"
                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="10px">
                                                    <ClientSideEvents Click="function(s, e) {
	popupmsj.Hide();
}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="popupModificar" runat="server" AllowDragging="True" ClientInstanceName="popupModificar"
                CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" SupportsDisabledAttribute="True">
                        <br />
                        <dx:ASPxPanel ID="ASPxPanel7" runat="server" DefaultButton="btCreate">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent7" runat="server">
                                    <table align="center">
                                        <tr>
                                            <td colspan="2">
                                                Se actualizo correctamente !
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table align="center">
                                        <tr>
                                            <td>
                                                <dx:ASPxButton ID="ASPxButton10" runat="server" Text="Aceptar" AutoPostBack="False"
                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="10px">
                                                    <ClientSideEvents Click="function(s, e) {
	popupModificar.Hide();
}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="popupVacios" runat="server" AllowDragging="True" ClientInstanceName="popupVacios"
                CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                        <br />
                        <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent2" runat="server">
                                    <table align="center">
                                        <tr>
                                            <td colspan="2">
                                                Rellene los campos vacios !
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table align="center">
                                        <tr>
                                            <td>
                                                <dx:ASPxButton ID="ASPxButton2" runat="server" Text="Aceptar" AutoPostBack="False"
                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="10px">
                                                    <ClientSideEvents Click="function(s, e) {
	popupVacios.Hide();
}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="PopupEliminarGrupoOpcion" runat="server" AllowDragging="True"
                ClientInstanceName="PopupEliminarGrupoOpcion" CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl9" runat="server" SupportsDisabledAttribute="True">
                        <br />
                        <dx:ASPxPanel ID="ASPxPanel4" runat="server" DefaultButton="btCreate">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent9" runat="server">
                                    <table align="center">
                                        <tr>
                                            <td colspan="2">
                                                ¿Estas seguro de eliminar el grupo de la opción?
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table align="center">
                                        <tr>
                                            <td align="center">
                                                <dx:ASPxButton ID="btnEliminaOpcionGrupo" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Text="Aceptar" Width="10px" OnClick="btnEliminaOpcionGrupo_Click">
                                                    <ClientSideEvents Click="function(s, e) {
	PopupEliminarGrupoOpcion.Hide();
	e.processOnServer = true;
}" />
                                                </dx:ASPxButton>
                                            </td>
                                            <td align="center">
                                                <dx:ASPxButton ID="ASPxButton3" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Text="Cancelar" Width="40px" AutoPostBack="False">
                                                    <ClientSideEvents Click="function(s, e) {
	PopupEliminarGrupoOpcion.Hide();
}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="popupDescripcion" runat="server" AllowDragging="True" ClientInstanceName="popupDescripcion"
                CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl7" runat="server" SupportsDisabledAttribute="True">
                        <br />
                        <dx:ASPxPanel ID="ASPxPanel8" runat="server" DefaultButton="btCreate">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent8" runat="server">
                                    <table align="center">
                                        <tr>
                                            <td colspan="2">
                                                &nbsp;<dx:ASPxHtmlEditor ID="hteDescripcion" runat="server">
                                                    <SettingsImageUpload>
                                                        <ValidationSettings AllowedFileExtensions=".jpe, .jpeg, .jpg, .gif, .png" MultiSelectionErrorText="Attention! 

The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 

{2}">
                                                        </ValidationSettings>
                                                    </SettingsImageUpload>
                                                    <SettingsImageSelector>
                                                        <CommonSettings AllowedFileExtensions=".jpe, .jpeg, .jpg, .gif, .png" />
                                                    </SettingsImageSelector>
                                                    <SettingsDocumentSelector>
                                                        <CommonSettings AllowedFileExtensions=".rtf, .pdf, .doc, .docx, .odt, .txt, .xls, .xlsx, .ods, .ppt, .pptx, .odp" />
                                                    </SettingsDocumentSelector>
                                                </dx:ASPxHtmlEditor>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <dx:ASPxButton ID="ASPxButton11" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Text="Aceptar" Width="10px">
                                                    <ClientSideEvents Click="function(s, e) {
	popupDescripcion.Hide();
	
}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="PopupAgregarGrupo" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" HeaderText="Agregar grupo" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                Width="700px" ClientInstanceName="PopupAgregarGrupo" Modal="True" PopupHorizontalAlign="WindowCenter"
                PopupVerticalAlign="WindowCenter" AllowDragging="True" CloseAction="CloseButton">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle Cursor="pointer">
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                        <table style="width: 100%;">
                            <tr>
                                <td>
                                    <dx:ASPxGridView ID="grdPopGrupo" runat="server" Width="100%" AutoGenerateColumns="False"
                                        ClientInstanceName="grdPopGrupo" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                        CssPostfix="Office2010Blue" KeyFieldName="id" OnAfterPerformCallback="grdPopGrupo_AfterPerformCallback">
                                        <Columns>
                                            <dx:GridViewCommandColumn Caption="Marcar" ShowInCustomizationForm="True" ShowSelectCheckbox="True"
                                                VisibleIndex="3">
                                                <ClearFilterButton Visible="True">
                                                </ClearFilterButton>
                                            </dx:GridViewCommandColumn>
                                            <dx:GridViewDataTextColumn Caption="Nombre" FieldName="nombre" ShowInCustomizationForm="True"
                                                VisibleIndex="1">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Descripción" FieldName="descripcion" ShowInCustomizationForm="True"
                                                VisibleIndex="2">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Id" FieldName="id" ShowInCustomizationForm="True"
                                                VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowSort="False" />
                                        <Settings ShowFilterRow="True" />
                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                            </Header>
                                            <LoadingPanel ImageSpacing="5px">
                                            </LoadingPanel>
                                        </Styles>
                                        <StylesPager>
                                            <PageNumber ForeColor="#3E4846">
                                            </PageNumber>
                                            <Summary ForeColor="#1E395B">
                                            </Summary>
                                        </StylesPager>
                                        <StylesEditors ButtonEditCellSpacing="0">
                                            <ProgressBar Height="21px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <dx:ASPxButton ID="btnPopAgregar" runat="server" Text="Agregar" AutoPostBack="False"
                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                        OnClick="btnPopAgregar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        <ClientSideEvents Click="function(s, e) {
	e.processOnServer = true;
	PopupAgregarGrupo.Hide();
}" />
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="PopupUsuarioAsosciados" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" HeaderText="Usuarios asociados" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                Width="700px" ClientInstanceName="PopupUsuarioAsosciados" Modal="True" PopupHorizontalAlign="WindowCenter"
                PopupVerticalAlign="WindowCenter" ShowPageScrollbarWhenModal="True">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                    <Paddings Padding="0px"></Paddings>
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px"></BorderBottom>
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    <Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px">
                    </Paddings>
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl8" runat="server" SupportsDisabledAttribute="True">
                        <table style="width: 100%;">
                            <tr>
                                <td>
                                    <dx:ASPxGridView ID="grdUsuarioAsociados" runat="server" Width="100%" AutoGenerateColumns="False"
                                        ClientInstanceName="grdUsuarioAsociados" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                        CssPostfix="Office2010Blue" KeyFieldName="ID_USUARIO" OnAfterPerformCallback="grdPopGrupo_AfterPerformCallback">
                                        <Columns>
                                            <dx:GridViewDataTextColumn Caption="Usuario" FieldName="ID_USUARIO" ShowInCustomizationForm="True"
                                                VisibleIndex="2">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Estado" FieldName="ESTADO" ShowInCustomizationForm="True"
                                                VisibleIndex="3">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Apellidos" FieldName="DES_APELLIDOS" ShowInCustomizationForm="True"
                                                VisibleIndex="1">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Nombre" FieldName="DES_NOMBRE" ShowInCustomizationForm="True"
                                                VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Email" FieldName="DES_EMAIL" ShowInCustomizationForm="True"
                                                VisibleIndex="4" Visible="False">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Tipo" FieldName="TIPO_USUARIO" ShowInCustomizationForm="True"
                                                VisibleIndex="5">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <Settings ShowFilterRow="True" />
                                        <SettingsBehavior AllowSort="False" SortMode="DisplayText"></SettingsBehavior>
                                        <Settings ShowFilterRow="True"></Settings>
                                        <SettingsLoadingPanel Mode="ShowOnStatusBar" Text="Loading..." />
                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                            </Header>
                                            <LoadingPanel ImageSpacing="5px">
                                            </LoadingPanel>
                                        </Styles>
                                        <StylesPager>
                                            <PageNumber ForeColor="#3E4846">
                                            </PageNumber>
                                            <Summary ForeColor="#1E395B">
                                            </Summary>
                                        </StylesPager>
                                        <StylesEditors ButtonEditCellSpacing="0">
                                            <ProgressBar Height="21px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
